/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.anhndt.audiobook.iface;

/**
 *
 * @author Anhndt
 */
public interface ProcessListener {

    /**
     * Gets invoked when the link ExecutableTask finishes processing
     * @param result the resulting object from the coputation
     */
    public void onSuccess(Object result, int index);

    /**
     * Gets invoked when an error occurs during processing
     * @param status the status message containing information about the error
     */
    public void onError(String status, int index);
}
